package com.baidu.service.impl;

import com.baidu.dao.PowerMapper;
import com.baidu.pojo.Power;
import com.baidu.service.PowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PowerServiceImpl implements PowerService {

    @Autowired
    private PowerMapper powerMapper;
    //查询所有角色
    public List<Power> getAllRole(){
        return powerMapper.getAllRole();
    }
}
